wxWindow
Table of Contents

wxWindow is a very well used class. Most controls are derived from wxWindow, so you should


remember that anything that can be done to a window can be done to an object derived from wxWindow. The parameters for creating a wxWindow are: An object of class wxWindow must have a parent. Therefore, you cannot create an object of class wxWindow to be your top level window. Your top level window should be either of type wxFrame or wxDialog. In fact, you should probably rarely create an object using wxWindow. See wxPanel.

  • proc capture_mouse( atom window )   
  • proc center_on_parent( atom win, integer direction )   
  • func get_client_size( atom this )   
  • func get_id( atom this )   
  • func get_top_level_parent( atom window )   
  • func get_window_style( atom win )   
  • proc refresh_window( object params )   
  • proc release_mouse( atom window )   
  • proc set_back_color( atom window, atom color )   
  • proc set_fore_color( atom window, atom color )   
  • proc set_title( atom window, sequence title )   
  • proc set_window_style( atom win, atom style )   
  • proc show_popup_menu( atom win, atom menu, integer x, integer y )     
     
    Parent Topics:
  • Classes
  • Controls  
     
    Subtopics:
  • wxCheckBox
  • wxCursor
  • wxFrame
  • wxPanel

    wxWindow
    Table of Contents

    [proc]
    capture_mouse
    ( atom window )

    Category: wxWindow

    This forces a mouse to keep the position it had when it left a window. If you call this while the cursor is in the 'double-arrow stance, it will keep that. However, if it has the normal arrow position when it is called, it will make the cursor turn into a wait stance while it is over the specified window.

    See Also: center_on_parent, get_client_size, get_id, get_top_level_parent, get_window_style, refresh_window, release_mouse, set_back_color, set_fore_color, set_title, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [proc]
    center_on_parent
    ( atom win, integer direction )

    Category: wxWindow

    Centers the window on its parent. direction can be wxHORIZONTAL, wxVERTICAL or wxBOTH.

    See Also: capture_mouse, get_client_size, get_id, get_top_level_parent, get_window_style, refresh_window, release_mouse, set_back_color, set_fore_color, set_title, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [func]
    get_client_size
    ( atom this )

    Category: wxWindow

    This returns the size of this in a sequence of {x,y}. This can be any wx class that is graphical ( i.e., not wxFontData or wxArrayString. )

    See Also: capture_mouse, center_on_parent, get_id, get_top_level_parent, get_window_style, refresh_window, release_mouse, set_back_color, set_fore_color, set_title, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [func]
    get_id
    ( atom this )

    Category: wxWindow

    Returns the id for objects that are derived from class wxWindow. This includes frames, windows and most controls, but does not include menu items. You should use get_menuitem_id() for that.

    See Also: capture_mouse, center_on_parent, get_client_size, get_top_level_parent, get_window_style, refresh_window, release_mouse, set_back_color, set_fore_color, set_title, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [func]
    get_top_level_parent
    ( atom window )

    Category: wxWindow

    See Also: capture_mouse, center_on_parent, get_client_size, get_id, get_window_style, refresh_window, release_mouse, set_back_color, set_fore_color, set_title, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [func]
    get_window_style
    ( atom win )

    Category: wxWindow

    Returns the style flag for the specified window.

    See Also: capture_mouse, center_on_parent, get_client_size, get_id, get_top_level_parent, refresh_window, release_mouse, set_back_color, set_fore_color, set_title, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [proc]
    refresh_window
    ( object params )

    Category: wxWindow

    Forces a wxWindow to repaint itself. params can take one of several forms:

    See Also: capture_mouse, center_on_parent, get_client_size, get_id, get_top_level_parent, get_window_style, release_mouse, set_back_color, set_fore_color, set_title, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [proc]
    release_mouse
    ( atom window )

    Category: wxWindow

    This releases the mouse position after capture_mouse has been called.

    See Also: capture_mouse, center_on_parent, get_client_size, get_id, get_top_level_parent, get_window_style, refresh_window, set_back_color, set_fore_color, set_title, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [proc]
    set_back_color
    ( atom window, atom color )

    Category: wxWindow

    See Also: capture_mouse, center_on_parent, get_client_size, get_id, get_top_level_parent, get_window_style, refresh_window, release_mouse, set_fore_color, set_title, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [proc]
    set_fore_color
    ( atom window, atom color )

    Category: wxWindow

    See Also: capture_mouse, center_on_parent, get_client_size, get_id, get_top_level_parent, get_window_style, refresh_window, release_mouse, set_back_color, set_title, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [proc]
    set_title
    ( atom window, sequence title )

    Category: wxWindow

    This resets the title of a wxFrame and allows you to put whatever you want in it's place. You can use set_icon to change the icon beside of it.

    See Also: capture_mouse, center_on_parent, get_client_size, get_id, get_top_level_parent, get_window_style, refresh_window, release_mouse, set_back_color, set_fore_color, set_window_style, show_popup_menu


    wxWindow
    Table of Contents

    [proc]
    set_window_style
    ( atom win, atom style )

    Category: wxWindow

    Set the style for the specified window.

    See Also: capture_mouse, center_on_parent, get_client_size, get_id, get_top_level_parent, get_window_style, refresh_window, release_mouse, set_back_color, set_fore_color, set_title, show_popup_menu


    wxWindow
    Table of Contents

    [proc]
    show_popup_menu
    ( atom win, atom menu, integer x, integer y )

    Category: wxWindow

    See Also: capture_mouse, center_on_parent, get_client_size, get_id, get_top_level_parent, get_window_style, refresh_window, release_mouse, set_back_color, set_fore_color, set_title, set_window_style